import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/sys_notice_entity.dart';

SysNoticeEntity $SysNoticeEntityFromJson(Map<String, dynamic> json) {
	final SysNoticeEntity sysNoticeEntity = SysNoticeEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		sysNoticeEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		sysNoticeEntity.code = code;
	}
	final List<SysNoticeData>? data = jsonConvert.convertListNotNull<SysNoticeData>(json['data']);
	if (data != null) {
		sysNoticeEntity.data = data;
	}
	return sysNoticeEntity;
}

Map<String, dynamic> $SysNoticeEntityToJson(SysNoticeEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] =  entity.data?.map((v) => v.toJson()).toList();
	return data;
}

SysNoticeData $SysNoticeDataFromJson(Map<String, dynamic> json) {
	final SysNoticeData sysNoticeData = SysNoticeData();
	final int? msgStatus = jsonConvert.convert<int>(json['msgStatus']);
	if (msgStatus != null) {
		sysNoticeData.msgStatus = msgStatus;
	}
	final String? msgTitle = jsonConvert.convert<String>(json['msgTitle']);
	if (msgTitle != null) {
		sysNoticeData.msgTitle = msgTitle;
	}
	final String? msgContent = jsonConvert.convert<String>(json['msgContent']);
	if (msgContent != null) {
		sysNoticeData.msgContent = msgContent;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		sysNoticeData.createTime = createTime;
	}
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		sysNoticeData.id = id;
	}
	final bool? redDot = jsonConvert.convert<bool>(json['redDot']);
	if (redDot != null) {
		sysNoticeData.redDot = redDot;
	}
	final int? msgTypeId = jsonConvert.convert<int>(json['msgTypeId']);
	if (msgTypeId != null) {
		sysNoticeData.msgTypeId = msgTypeId;
	}
	return sysNoticeData;
}

Map<String, dynamic> $SysNoticeDataToJson(SysNoticeData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msgStatus'] = entity.msgStatus;
	data['msgTitle'] = entity.msgTitle;
	data['msgContent'] = entity.msgContent;
	data['createTime'] = entity.createTime;
	data['id'] = entity.id;
	data['redDot'] = entity.redDot;
	data['msgTypeId'] = entity.msgTypeId;
	return data;
}